package com.heatingcharge.service.unit;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heatingcharge.dto.ResBuildingDTO;
import com.heatingcharge.entity.unit.ResBuilding;
import com.heatingcharge.param.ResBuildingParam;
import com.heatingcharge.vo.TreeVo;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 楼  服务类
 * </p>
 *
 * @author devin.jiang
 * @since 2019-07-12
 */
public interface IResBuildingService extends IService<ResBuilding> {
    IPage<ResBuilding> selectBuildingPage(Page page, ResBuildingDTO resBuildingDTO);

    List<TreeVo> selectBuildingTree(ResBuildingDTO resBuildingDTO);

    List<ResBuilding> selectBuildingByZoneId(ResBuildingDTO resBuildingDTO);

    boolean save(ResBuildingParam resBuildingParam);

    boolean update(ResBuildingParam resBuildingParam);

    @Override
    boolean removeById(Serializable id);
}
